SetImageDescriptionCTable
Your application may use theSetImageDescriptionCTable
function to update the custom color table for an image. The Image Compression Manager copies the custom color table for an image into the appropriate image description structure. This function does not change the image data, just the color table.
pascal OSErr SetImageDescriptionCTable (ImageDescriptionHandle desc, CTabHandle ctable);
desc
- Contains a handle to the appropriate image description structure. The
SetImageDescriptionCTable
function updates the size of the image description to accommodate the new color table and removes the old color table, if one is present.ctable
- Contains a handle to the new color table. The
SetImageDescriptionCTable
function loads this color table into the image description referred to by thedesc
parameter. Set this parameter tonil
to remove a color table.DESCRIPTION
TheSetImageDescriptionCTable
function is rarely used. Typically, you supply the color table when your application compresses an image. The Image Compression Manager stores the color table with the image.RESULT CODES
noErr 0 No error paramErr -50 Invalid parameter specified memFullErr -108 Not enough memory available n oCodecErr
-8961 The Image Compression Manager could not find the specified compressor